# -*- coding: UTF-8 -*-
"""
@Time:2022/4/29 9:44
@File:urls.py
@Author:常雷
@Software:PyCharm
"""

from django.urls import path,include,re_path
from palyWordDackend.views import article, userinfo, upimage,home,plate,dynamic
urlpatterns = [
    # re_path(r'^news/$', news.NewsView.as_view()),
    # re_path(r'^news/(?P<pk>\d+)/$', news.NewDetailView.as_view()),
    # re_path(r'^comment/$', news.CommentView.as_view()),
    re_path(r'^login/$', userinfo.LoginView.as_view()),
    re_path(r'^upimage/$', upimage.UpFile.as_view()),
    re_path(r'^article/$', article.CreateArticle.as_view()),
    re_path(r'^home/plate/$', home.CategoryView.as_view()),
    re_path(r'^home/active_user/$', home.ActiveUserView.as_view()),
    re_path(r'^home/hotArticle/$', home.HotArticleView.as_view()),
    re_path(r'^articleId/(?P<pk>\d+)/$', article.ArticlePreview.as_view()),
    re_path(r'^UpAndDown/$', article.UpAndDownView.as_view()),
    re_path(r'^comment/$', article.CommentView.as_view()),
    re_path(r'^plate/$', plate.PlateView.as_view()),
    re_path(r'^dynamic/$', dynamic.RecommendationView.as_view()),
]